home *** CD-ROM | disk | FTP | other *** search
- global platformsDatabase, bootcampDatabase, coverDatabase, cryptDatabase, onlineDatabase, creditsDatabase, titleDatabase
-
- on InitAllGameLists
- if voidp(titleDatabase) then
- put "titleDatabase is void"
- else
- InitPlatforms()
- InitGameList(getrecords(titleDatabase, #all, "bootcamp"), "bootcamp games")
- InitGameList(getrecords(titleDatabase, #features, "coverstory"), "featured games")
- InitGameList(getrecords(titleDatabase, #reviews, "coverstory"), "reviewed games")
- InitGameList(getrecords(titleDatabase, #all, "crypt"), "crypt games")
- InitCodebook()
- end if
- end
-
- on InitPlatforms gameRecords
- set platformList to ["Nintendo 64", "PlayStation", "Saturn", "PC", "Macintosh", "Other"]
- repeat with platformName in platformList
- set gameRecords to getrecords(titleDatabase, symbol(platformName), "platforms")
- set gameListMember to "platforms" && platformName
- InitGameList(gameRecords, gameListMember)
- end repeat
- end
-
- on InitCodebook
- set platformList to ["Nintendo 64", "PlayStation", "Saturn", "Other"]
- repeat with platformName in platformList
- set gameRecords to getrecords(titleDatabase, symbol(platformName), "codebook")
- set gameListMember to "codebook" && platformName
- InitGameList(gameRecords, gameListMember)
- end repeat
- end
-
- on InitGameList gameRecords, gameListMember
- if the number of member gameListMember > 0 then
- if listp(gameRecords) then
- set game to getAt(gameRecords, 1)
- set gameListText to the name of game
- repeat with gameIndex = 2 to count(gameRecords)
- set game to getAt(gameRecords, gameIndex)
- set gameListText to gameListText & RETURN & the name of game
- end repeat
- set the text of member gameListMember to gameListText
- else
- put "No games in that category"
- set the text of member gameListMember to " "
- end if
- else
- put "InitPlatform -- Bad cast member name:" && gameListMember
- end if
- end
-